﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NMF.Optimizations
{
    public abstract class ScenarioBase : IOptimizationScenario
    {
        public double Cost
        {
            get;
            set;
        }

        public abstract Optimization Optimization { get; }

        public abstract IEnumerable<IOptimizationModification> AppliedModifications { get; }

        public IOptimizationScenario Fork(IOptimizationModification modification)
        {
            return new ModifiedScenario(this, modification);
        }

        public IOptimizationScenario Fork(IEnumerable<IOptimizationModification> modifications)
        {
            return new MultiModifiedScenario(this, modifications);
        }
    }
}
